import Vue from 'vue'
import App from './App.vue'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import store from '@/store/login.js'
import _ from 'lodash'
import router from './router';

import '@/utils/aegis.js';
import { isMobile } from '@/utils/utils';
import { createPinia, PiniaVuePlugin } from 'pinia';

Vue.use(PiniaVuePlugin);
Vue.use(ElementUI)
const pinia = createPinia();
import Breadcrumb from "@/components/Breadcrumb.vue";
Vue.component('Breadcrumb', Breadcrumb)
// Vue.mixin({
//   methods: {
//     show_home() {
//       this.$emit('show-home');
//     },
//   }
// })


Vue.config.productionTip = false
Vue.prototype._ = _
Vue.prototype.$isMobile = isMobile;
new Vue({
  store,
  router,
  pinia,
  render: h => h(App),
}).$mount('#app')
